package com.basketball.repository;

import com.basketball.entity.Record;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface RecordRepository extends JpaRepository<Record, Long> {
    @Query("select c from record c where c.eventDate=:eventDate")
    List<Record> getRecordByDate(String eventDate);
}
